package com.shuyun.springmvc.showcase.converter;

import com.shuyun.springmvc.showcase.annotation.DemoObj;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by feng.ding on 2017/1/4.
 */
@Controller
public class ConverterController {

    @RequestMapping(value = "/convert", produces = "application/x-caller")
    @ResponseBody
    public DemoObj convert(@RequestBody DemoObj obj){
        return obj;
    }
}
